package com.ying.dogying.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ying.dogying.entity.ImUser;
import com.ying.dogying.entity.Response;
import com.ying.dogying.shiro.AccountProfileDto;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李华明
 * @since 2020-06-05
 */
public interface ImUserService extends IService<ImUser> {

    /**
     * 登录验证
     */
    AccountProfileDto login(String username, String password);

    /**
     * 注册
     */
    Response register(ImUser imUser);

    /**
     * 编辑基本设置
     */
    Response updateByParams(ImUser imUser, Long profileId, AccountProfileDto profile);

    /**
     * 上传图片
     */
    Response upload(MultipartFile file, String type, Long profileId, AccountProfileDto profile);
}
